#!/usr/bin/python
# coding:utf-8
# auther:DT
# 2017-08-09_00-09-02
import os
way = input("please input the path:")
py_list=[]
for path,d_name,f_name in os.walk(way):
    for i in f_name:
        if i.endswith(".py"):
            print(os.path.join(path,i))
            py_list.append(os.path.join(path,i))

print(len(py_list))
